package com.meilai.project.vo.system;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.meilai.project.core.bean.StringToBoolSerializer;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author 张驰
 * @date 2020/9/10 17:07
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public class RouterVO {
    @JsonIgnore
    private Long id;
    @JsonIgnore
    private Long pid;
    @JsonIgnore
    private Long rid;
    private String path;
    private String component;
    private String name;
    @JsonSerialize(using = StringToBoolSerializer.class)
    private String alwaysShow;
    private String redirect;
    @JsonSerialize(using = StringToBoolSerializer.class)
    private String hidden;
    private RouterMetaVO meta;
    private List<RouterVO> children;
    @JsonIgnore
    private Integer sort;
}
